package org.mics.jpa.entity;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 树节点
 * @author mics
 * @date 2023-9-26
 * @version  1.0
 */
@Data
@MappedSuperclass
@EqualsAndHashCode(callSuper = false)
public class TreeNode extends BaseEntity {
	
	@Column(name = "name", unique = true, columnDefinition = "varchar(32) comment '名称' ")
	private String name;
	
    @Column(name = "parent_id",columnDefinition = "varchar(32) comment '上级id' ")
    private String parentId;
}
